<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var mystring="javax.servlet.http.HttpServlet.service(HttpServlet.java:624)org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88";
		     mystring= mystring.replace(/(servlet)/g,"<font color=red>$1</font>");
		    document.write(mystring);
//		    
//		    
//		  document.write("replace使用场景第一种实现 - 特殊字符 - 关键字变色:"+"<br />");
//  var myString="传智播客是中国最有前景，口碑最好的IT综合教育培训机构，传智播客的宗旨是：一切为了学生，传智播客在全国有众多分校";
//  myString=myString.replace(/(传智播客)/g,"<font color=red>$1</font>");
//  document.write(myString+"<br />");  
		
		
		
		</script>
	</body>
</html>
